import requests

url = "https://www.cathaypacific.com/content/dam/focal-point/digital-library/cathay-pacific/aircraft/a321neo/aircraft-a321neo-c024.renditionimage.900.350.jpg"

headers = {
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
}

res = requests.get(url, headers=headers)

with open("airplane.jpg", "wb") as f:
    f.write(res.content)
